<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<meta name="keywords" content="爽客网旅游，贵阳旅游，旅游" />
<meta name="description" content="爽客网旅游，贵阳旅游，旅游" />
<title>景点门票 - 爽客网 </title>
<link href="/css/phone/reset.css" type="text/css" rel="stylesheet" />
<link href="/css/phone/lr.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/phone/jquery.ying.js"></script>
<script type="text/javascript" src="/js/base.js"></script>
</head>

<body>
	<div class="w320 wrap">
    	<div class="mg_s2">
    		<form action="waplogin.htm" method="post" id="login_form">
        	<div class="com_box">
            	<div class="left"></div>
                <div class="content">
                	<ul class="lr_det">
                    	<li>
                        	<label>用户名</label><input type="text" value="用户名/邮箱" class="def" id="login_name" name="loginName"/>
                        </li>
                        <li>
                        	<label>密码</label><input type="password" value="" class="def" id="login_pwd" name="loginPwd"/>
                        </li>
                        <li>
                        	<input style="margin-left: 8px;margin-right: 5px;" type="checkbox"  name="autoLogin" id="auto_login"/><span>自动登录</span>
                        </li>
                    </ul>
                </div>
                <div class="right"></div>
            </div>
            </form>
            <a href="javascript:;" id="login_button" class="def_link mb25">
            	<i class="left"></i>
                <span>登&nbsp;录</span>
                <i class="right"></i>
            </a>
            
            <a href="waptoreg.htm" class="def_link mb15">
            	<i class="left"></i>
                <span>注&nbsp;册</span>
                <i class="right"></i>
            </a>
        </div>
    </div>
    <script type="text/javascript">
    	
  	  	$(function(){
  	  		
  	  		$("#login_button").click(function(){
  	  			var loginName = $("#login_name");
	  	  		var loginPwd = $("#login_pwd");
	  	  		if(loginName.val()==null || loginName.val()=="" || loginName.val() == '用户名/邮箱'){
	  	  			alert("用户名不能为空");
	  	  			$("#login_name").focus();
	  	  			COOL.hideLoad();
	  	  			return ;
	  	  		}
	  	  		if(loginPwd.val()==null || loginPwd.val()==""){
	  	  			alert("密码不能为空");
	  	  			$("#login_pwd").focus();
	  	  			COOL.hideLoad();
	  	  			return ;
	  	  		}
	  	  		
	  	  		$("#login_form").submit();
  	  		});
  	  		if("${loginError}" != "")
  	  		alert("${loginError}");
  	  	});
    </script>
</body>
</html>
